#pragma once


#include "imgui.h"
#include "stock_data_struct.h"
#include <vector>
#include <string>

#ifdef MACD_CHART_EXPORTS
#define MACD_CHART_API __declspec(dllexport)
#else
#define MACD_CHART_API __declspec(dllimport)
#endif

// 设置一只股票的所有数据    
MACD_CHART_API void setMACDData(const std::vector<StockData>& data);

// 设置日期范围
MACD_CHART_API void setDateRangeMACD(const std::string& startDate, const std::string& endDate);

// 绘制MACDonald图表
MACD_CHART_API void drawMACDChart(ImDrawList* drawList, ImVec2 pos, ImVec2 size);
